package com.cgw.web.author.manager.impl;

import java.util.List;

import com.cgw.dmplt.author.biz.UserRoleBiz;
import com.cgw.dmplt.author.domain.UserRole;
import com.cgw.web.author.manager.UserRoleManager;

public class UserRoleManagerImpl implements UserRoleManager {
	
	private UserRoleBiz userRoleBiz;
	
	public void deleteUserRole(UserRole userRole) {
		userRoleBiz.deleteUserRole(userRole);
	}

	public void insertUserRole(UserRole userRole) {
		userRoleBiz.insertUserRole(userRole);
	}

	public List<UserRole> listUserRole(UserRole userRole) {
		return userRoleBiz.listUserRole(userRole);
	}

	public int listUserRoleCount(UserRole userRole) {
		Integer count=userRoleBiz.listUserRoleCount(userRole);
		return count==null ? 0 : count.intValue();
	}

	public void updateUserRole(UserRole userRole) {
		userRoleBiz.updateUserRole(userRole);
	}

	public UserRoleBiz getUserRoleBiz() {
		return this.userRoleBiz;
	}

	public void setUserRoleBiz(UserRoleBiz userRoleBiz) {
		this.userRoleBiz = userRoleBiz;
	}
	
}
